$("#frm_registrasi").validate({
	errorPlacement: function(error, element) {
		element.parent().after(error); 
	}, 
	rules: {
		username:{required:true},
		password:{required:true}
	},
	messages: {
		username: "Username harus diisi.",
		password: "Password harus diisi."
	}
});